package com.doraro.platform.module.user.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author doraro
 * @since 2019-06-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_job")
@ApiModel(value = "SysJob对象", description = "")
public class SysJob implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "user主键")
    private String uid;

    @ApiModelProperty(value = "接受任务的订单id")
    private String orderId;

    @ApiModelProperty(value = "开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "任务状态(0-未维修 1发出完成请求，2任务完成)")
    private Integer jobStatus;

    @ApiModelProperty(value = "工作量(天)")
    private Integer workload;

    @ApiModelProperty(value = "自行维修率(小数")
    private BigDecimal selfRepaireRate;

    @ApiModelProperty(value = "单次维修时间(天)")
    private Integer singleRepairTime;

    @ApiModelProperty(value = "记录创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "最近修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "损坏原因")
    private String breakdownInfo;

    @ApiModelProperty(value = "维修详情")
    private String repairInfo;


}
